package com.bm.server.controller;

import com.bm.common.dto.LotteryDto;
import com.bm.common.vo.R;
import com.bm.server.service.intf.LotteryService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/server/lottery/")
public class LotteryController {
    @Resource
    private LotteryService service;
    @PostMapping("five.do")
    public  R five(@RequestBody LotteryDto dto){
        return service.five(dto);
    }
    @PostMapping("one.do")
    public  R one( @RequestBody LotteryDto dto){
        return service.one(dto);
    }
}
